<?php echo $this->validation->error_string; ?>
<?php echo form_open($this->curl .'/edit/'.$this->validation->id.'/'. $this->category_alias, 'id="create_form"')?>
<?php echo form_hidden('id', $this->validation->id)?>

<?php echo form_fieldset(T_('Article')); ?>
	
	<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr>
		<th style="width: 120px;"><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->page_model->fields['title']?></th>
		<td><div class="input_300"><?php echo form_input('title', $this->validation->title, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->page_model->fields['alias']?></th>
		<td><div class="input_300"><?php echo form_input('alias', $this->validation->alias, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->page_model->fields['status']?></th>
		<td><div class="input_300"><?php echo form_dropdown('status', $this->page_model->status, array($this->validation->status))?></div></td>
	</tr>	
	<tr>
		<th><?php echo $this->page_model->fields['teaser']?></th>
		<td><textarea name="teaser" id="teaser"><?php echo $this->validation->teaser ?></textarea></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->page_model->fields['text']?></th>
		<td><textarea name="text" id="text"><?php echo $this->validation->text ?></textarea></td>
	</tr>
	</table>
	
<?php echo form_fieldset_close(); ?>

<?php echo form_fieldset(T_('META data')); ?>
	
	<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr>
		<th style="width: 120px;"><?php echo T_('Title')?></th>
		<th><div class="input_300"><?php echo form_input('meta_title', $this->validation->meta_title, 'class="input-text"')?></div></th>
	</tr>
	<tr>
		<th><?php echo T_('Description')?></th>
		<td><div class="input_300"><?php echo form_input('meta_description', $this->validation->meta_description, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php echo T_('Keywords')?></th>
		<td><div class="input_300"><?php echo form_input('meta_keywords', $this->validation->meta_keywords, 'class="input-text"')?></div></td>
	</tr>
	</table>
	
<?php echo form_fieldset_close(); ?> 

	<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr>
		<th style="width: 132px;"></th>
		<td>
			<input name="edit" type="submit" class="btn btn_save" id="submit" value="<?php echo T_('Submit')?>" />
			<input name="reset"  type="reset"  class="btn btn_clear" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />
			<input name="delete" type="button" class="btn btn_delete" id="delete" value="<?php echo T_('Delete')?>" onclick="if (confirm('<?php echo T_('Are you sure you want to delete this Page?')?>')) location='/admin/<?php echo $this->curl; ?>/delete/<?php echo $this->validation->id?>/<?php echo $this->category_alias ?>';return false;" />		
		</td>
	</tr>
	</table>

<?php echo form_close()?>